/*
 * @Author: peng.chen2 peng.chen2@rt-mart.com
 * @Date: 2025-07-24 10:30:00
 * @LastEditors: peng.chen2
 * @LastEditTime: 2025-07-25 16:19:12
 * @FilePath: /rt-monitoring/src/service/config.ts
 * @Description: API 配置文件
 */
// HTTP 状态码
export const HTTP_STATUS = {
  OK: 200,
  CREATED: 201,
  NO_CONTENT: 204,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_SERVER_ERROR: 500,
} as const

// 业务状态码
export const BUSINESS_CODE = {
  SUCCESS: 0,
  ERROR: -1,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  VALIDATION_ERROR: 422,
  SERVER_ERROR: 500,
} as const
